/* 修改、审核 */
export const salePriceExtendFields = [
  {
    title: '售价调价原因',
    key: 'changePriceReason',
    align: 'center',
    width: 160,
    type: 'nowInputNoLimit',
  },
  {
    title: '竞争对手',
    key: 'opponentName',
    align: 'center',
    width: 160,
    type: 'nowInput',
  },
  {
    title: '落实开票价格',
    key: 'invoicePrice',
    align: 'center',
    width: 160,
    type: 'specialNowInputNumber',
  },
  {
    title: '我司售价与竞争对手差额比例',
    key: 'opponentRatio',
    align: 'center',
    width: 180,
    type: 'specialNowInputNumberNoLimit',
  }
]
/* 查看 */
export const salePriceViewExtendFields = [
  {
    title: '售价调价原因',
    align: 'center',
    width: '160',
    render: (h, { row }) => {
      return (<div>{ row.nowInput.changePriceReason }</div>)
    }
  },
  {
    title: '竞争对手',
    align: 'center',
    width: 160,
    render: (h, { row }) => {
      return (<div>{ row.nowInput.opponentName }</div>)
    }
  },
  {
    title: '落实开票价格',
    align: 'center',
    width: 160,
    render: (h, { row }) => {
      return (<div>{ row.nowInput.invoicePrice }</div>)
    }
  },
  {
    title: '我司售价与竞争对手差额比例',
    align: 'center',
    width: 180,
    render: (h, { row }) => {
      return (<div>{ row.nowInput.opponentRatio }</div>)
    }
  }
]
